package com.yuniarti.konsultasikesehatan;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;

public class DasboardActivity extends Activity implements OnClickListener {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_dasboard);
		
		findViewById(R.id.btn_konsultasi).setOnClickListener(this);
		findViewById(R.id.btn_informasi).setOnClickListener(this);
		findViewById(R.id.btn_about).setOnClickListener(this);
		//findViewById(R.id.btn_register).setOnClickListener(this);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_dasboard, menu);
		return true;
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.btn_konsultasi:
			Intent loginintent = new Intent(this,LoginActivity.class);
			startActivity(loginintent);
			break;
		case R.id.btn_informasi:
			Intent infointent = new Intent(this,InformasiActivity.class);
			startActivity(infointent);
			break;
		case R.id.btn_about:
			Intent aboutintent = new Intent(this,AboutActivity.class);
			startActivity(aboutintent);
			break;
			/*
		case R.id.btn_register:
			Intent registerintent = new Intent(this,MainActivity.class);
			startActivity(registerintent);
			break; */
		default:
			break;
		}
	}

}
